package cn.dy.controller;

import javafx.geometry.Pos;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping(value = "/user")
public class HelloController {

    @RequestMapping(path="/hello")
    public String sayHello(){
        System.out.println("Hello Spring MVC");
        return "success";
    }

    @RequestMapping(path="/testRequestMapping",params = {"username"},headers = {"Accept"})
    public String testRequestMapping(){
        System.out.println("testRequestMapping注解测试");
        return "success";
    }
}
